package com.caocaog.market.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.caocaog.market.entity.ImagesBanner;
import com.caocaog.market.entity.ImagesCarousel;

import java.util.List;

/**
 * 轮播图管理
 *
 * @author chechen
 * @date 2021-12-28
 */
public interface ImagesCarouselService extends IService<ImagesCarousel> {

    IPage<ImagesCarousel> queryImagesCarouselPage(Page<ImagesCarousel> page, ImagesCarousel imagesCarousel);

    ImagesCarousel getImagesCarouselByTypeSource(int positionType);

    /**
     * 获取全部的轮播图
     * @return 全部的轮播图List
     */
    List<ImagesBanner> getImagesCarouselList();
    String addImagesCarousel(ImagesCarousel imagesCarousel);

    int updateImagesCarousel(ImagesCarousel imagesCarousel);

    int deleteImagesCarousel(Long id);

}
